package com.cari.oa.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * 风险实体
* Title: SoftRiskEntity
* Description:
* Company: cari 
* @author    hjx 
* @date       2013-1-21
 */
@Entity
@Table(name = "T_RISK")
public class SoftRiskEntity implements Serializable{
	
	private static final long serialVersionUID = 2865480685881716089L;

	/**
     * 风险ID
     */
	@Id
	@Length(max = 32)
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String id;           
    
    /**
     * 项目Id
     */
    @NotNull(message = "项目Id不能为空")
    @Column(name = "projectId")
	private String projectId;  
    
    /**
     * 风险类别
     */
    @Column(name = "RISK_TYPE")
	private String riskType;    
	
	/**
	 * 风险描述
	 */
    @Column(name = "DESCRIPTION")
    @Length(max = 500, message = "风险描述长度要小于500个字符")
	private String description;  
	
    /**
	 * 风险状态
	 */
    @Column(name = "STATUS")
    @Length(max = 50, message = "风险状态长度要小于50个字符")
	private String status;
    
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getRiskType() {
		return riskType;
	}

	public void setRiskType(String riskType) {
		this.riskType = riskType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
}
